package top.juntech.serverconsumerfeignhystrix;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

@SpringBootApplication
//开启熔断器
@EnableHystrix
//注册服务到注册中心
@EnableDiscoveryClient

public class ServerConsumerFeignHystrixApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServerConsumerFeignHystrixApplication.class, args);
    }

}
